﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.DAL;
using ZX.OA.Model;
namespace ZX.OA.BLL
{
 public    class MeetingBll
    {
     MeetingDal dal = new MeetingDal();
     /// <summary>
     /// 会议表的显示
     /// </summary>
     /// <returns></returns>
     public List<MeetingInfo> Show_MeetingInfo()
     {
         return dal.Show_MeetingInfo();
     }
     /// <summary>
     /// 会议室下拉框显示
     /// </summary>
     /// <returns></returns>
     public List<MeetingRoomInfo> Drop_MeetingRoomInfo()
     {
         return dal.Drop_MeetingRoomInfo();
     }
     /// <summary>
     /// 添加会议信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int Add_MeetingInfo(MeetingInfo meeting)
     {

         return dal.Add_MeetingInfo(meeting);
     }
     /// <summary>
     /// 显示会议详情
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public MeetingInfo Upd_MeetingInfo(int id)
     {
         return dal.Upd_MeetingInfo(id);
     }
     /// <summary>
     /// 撤销会议信息
     /// </summary>
     /// <param name="id">会议编号</param>
     /// <returns></returns>
     public int Del_MeetingInfo(int id)
     {
         return dal.Del_MeetingInfo(id);

     }
     /// <summary>
     /// 多条件查询会议
     /// </summary>
     /// <param name="MeetingName">会议名</param>
     /// <param name="MeetingPerson">发起人</param>
     /// <param name="MeetingRoom">会议室</param>
     /// <returns></returns>
     public List<MeetingInfo> Sel_MeetingInfo (string MeetingName,string MeetingPerson,int ? MeetingRoomId)
     {
         return dal.Sel_MeetingInfo(MeetingName, MeetingPerson, MeetingRoomId);
     }
    }
}
